import request from '@/utils/request'
import { encrypt } from '@/utils/encryption'

// 管理员登录接口
export const adminLoginService = ({ username, password }) =>
  request.post('/web/admin/login', {
    username,
    password: encrypt(password)
  })

// 管理员登出接口
export const adminLogoutService = () => request.post('/web/admin/logout')
